<?php if (!defined('THINK_PATH')) exit(); if(is_array($items_list)): $i = 0; $__LIST__ = $items_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><div class="item mt15 masonry_brick"><div class="item_t"><div class="img tc"><a target="_blank" href="<?php echo u('item/index',array('id'=>$val['id']));?>" hidefocus="true" rel="nofollow"><img alt="<?php echo ($val["title"]); ?>" url="<?php echo base64_encode($val['img']);?>" style="display:inline;" class="encode_url"></a><div class="btns"><a href="javascript:;" class="img_like_btn" iid="<?php echo ($val["id"]); ?>" iurl="<?php echo u('item/index',array('id'=>$val['id']));?>"><em></em>喜欢
                </a><a href="<?php echo u('item/index',array('id'=>$val['id']));?>#items_comments" class="img_comment_btn" target="_blank"><em></em>评论
                </a><a href="javascript:;" class="img_album_btn" iid="4464"><em></em>                    加入专辑
                </a></div><div class="price">                ¥<?php echo ($val["price"]); ?></div></div><div class="title"><span><a href="<?php echo u('item/index',array('id'=>$val['id']));?>"><?php echo ($val["title"]); ?></a></span></div></div><?php if(isset($val['user'])): ?><div class="item_b clearfix"><div class="items_site fl">            来自
            <a href="<?php echo u('uc/index',array('uid'=>$val['user']['id']));?>">               @<?php echo ($val["user"]["name"]); ?></a>            分享
        </div><div class="items_likes fr"><a href="javascript:;" class="like_btn" iid="<?php echo ($val["id"]); ?>" iurl="<?php echo u('item/index',array('id'=>$val['id']));?>"></a><em class="red bold" id="like_num_4464"><?php echo ($val["likes"]); ?></em></div></div><?php endif; if(isset($val['comments_list'])): ?><div class="clearfix comments"><?php if(is_array($val['comments_list'])): $i = 0; $__LIST__ = $val['comments_list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$comment): $mod = ($i % 2 );++$i;?><div class="clearfix citem"><div class="left"><img src="<?php echo uimg($comment['img']);?>" width="32" height="32" /></div><div class="left r2"><?php echo ($comment["name"]); ?> 说：<?php echo (mb_substr($comment["info"],0,50,'utf-8')); ?></div></div><?php endforeach; endif; else: echo "" ;endif; ?></div><?php endif; ?></div><?php endforeach; endif; else: echo "" ;endif; ?>